-- GENERATED SPELL FOR [Unkor the Ruthless] --


function spell0_18262(pUnit, Event) --@Pulverize,Self--
pUnit:FullCastSpellOnTarget(2676,pUnit)
pUnit:RegisterEvent('Sorts_18262', 2000, 1)
end

function spell1_18262(pUnit, Event) --@QID 9889,n/a--
pUnit:FullCastSpellOnTarget(32174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18262', 659, 1)
end

function Sorts_18262(pUnit, Event)
local choix_sorts_18262 = math.random(0, 1)
if choix_sorts_18262 == 0 then
pUnit:RegisterEvent('spell0_18262', 1, 1)
end
if choix_sorts_18262 == 1 then
pUnit:RegisterEvent('spell1_18262', 1, 1)
end
end

function mob18262_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18262', math.random(1500, 3000), 1)
end

function mob18262_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18262_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18262_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18262, 1, 'mob18262_Action')
RegisterUnitEvent(18262, 2, 'mob18262_Leave')
RegisterUnitEvent(18262, 3, 'mob18262_Kill')
RegisterUnitEvent(18262, 4, 'mob18262_Die')
